<!DOCTYPE html>
<html lang="zh-cn" xmlns:th="http://www.thymeleaf.org"
	  xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit">
		<title th:text="${user.getUserAccount()}+'的博客'">></title>
		<link rel="icon" th:href="@{/show/images/icon/favicon.ico}" type="image/x-icon"/>
		<link rel="bookmark" th:href="@{/show/images/icon/favicon.ico}" type="image/x-icon"/>
		<link rel="stylesheet" th:href="@{/css/pintuer.css}">
		<link rel="stylesheet" th:href="@{/css/admin.css}">
		<link rel="stylesheet" th:href="@{/layui/css/layui.css}">
		<script th:src="@{/js/jquery.js}"></script>
		<style>
			.admin::-webkit-scrollbar {display:none}
		</style>
	</head>

	<body style="background-color:#f2f9fd;">
		<div class="header bg-main">
			<div class="logo margin-big-left fadein-top">
				<h1><img th:src="@{/upload/userimg/}+${wallet.getAvatar()}" class="radius-circle rotate-hover" height="50" alt="" /><font th:text="${user.getUserAccount()}"></font>的博客</h1>
			</div>
			<div class="head-l">
				<a class="button button-little bg-green" th:href="@{/show/main}"><span class="icon-home"></span> 前台首页</a> &nbsp;&nbsp;&nbsp;&nbsp;
				<a class="button button-little bg-red" th:href="@{/loginCenter/logout}"><span class="icon-power-off"></span> 退出登录</a>
			</div>
		</div>
		<div class="leftnav">
			<div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>
			<!--<h2><span class="icon-pencil"></span>创作中心</h2>-->
            <div th:each="menu:${menus}" th:shiro:hasPermission="${menu.getPerms()}">
                <h2><i class="layui-icon" th:utext="${menu.getIcon()}">&#xe642;</i> <b th:text="${menu.getMname()}"></b></h2>
					<ul style="display:block" >
						<th:block th:each="children:${menu.getChildren()}" >
						<li th:shiro:hasPermission="${children.getPerms()}">
							<a th:href="@{${children.getAddress()}}" target="right"><i class="layui-icon" th:utext="${children.getIcon()}"></i> <b th:text="${children.getMname()}"></b></a>
						</li>
						</th:block>
					</ul>
            </div>
		</div>
		
		<ul class="bread">
			<li>
				<a href="book.html" target="right" class="icon-home"> 首页</a>
			</li>
			<li>
				<a href="##" id="a_leader_txt">网站信息</a>
			</li>
			<li><b>当前语言：</b><span style="color:red;">中文</span>
			</li>
		</ul>
		<div class="admin">
			<iframe id="myframe" scrolling="auto" rameborder="0" th:src="@{/article/data_article}" name="right" width="100%" height="100%"></iframe>
		</div>
	</body>
<!--下拉栏-->
<script type="text/javascript" th:inline="javascript">
			$(function() {
				$(".leftnav h2").click(function() {
					$(this).next().slideToggle(200);
					$(this).toggleClass("on");
				});
				/*$(".leftnav ul li a").click(function() {
					$("#a_leader_txt").text($(this).text());
					$(".leftnav ul li a").removeClass("on");
					$(this).addClass("on");
					
				})*/
			});
</script>
	<script th:src="@{/layui/layui.js}"></script>

<!--	<script type="text/javascript">
		function changeframe() {
			$('#myframe').attr('src', 'book.html');
		}
	</script>-->

</html>